import React from "react";
import {ItemType} from "antd/es/menu/hooks/useItems";

class CardInfo {
    title: string
    content: string
    author: string
    lockStatus: boolean


    constructor(title: string, content: string, author: string, lockStatus: boolean) {
        this.title = title;
        this.content = content;
        this.author = author;
        this.lockStatus = lockStatus;
    }
}

interface INestInfo {
    cardInfo: CardInfo
}


class MessageInfo {

    msgContent: string;
    me?: boolean;

    constructor(content: string, me?: boolean) {
        this.msgContent = content;
        this.me = me;
    }
}


class FileInfo {
    fileName: string

    constructor(fileName: string) {
        this.fileName = fileName;
    }
}


class CatNestRoute {
    name: string
    path: string
    element: React.FC
    item: ItemType


    constructor(name: string, path: string, element: React.FC, item: ItemType) {
        this.name = name;
        this.path = path;
        this.element = element;
        this.item = item;
    }
}


export {
    CardInfo, CatNestRoute, MessageInfo, FileInfo
}

export type {INestInfo}
